package com.arpa.wms.domain.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 盘点
 * </p>
 *
 * @author LEO
 * @since 2020-09-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_difference")
@ApiModel(value="Difference对象", description="盘点")
public class Difference extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "差异单号")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "仓库")
    @TableField("warehouse_code")
    private String warehouseCode;

    @ApiModelProperty(value = "入驻商")
    @TableField("shipment_code")
    private String shipmentCode;

    @ApiModelProperty(value = "所属机构")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "库位")
    @TableField("location")
    private String location;
    @ApiModelProperty(value = "审核人code")
    @TableField("audit_code")
    private String auditCode;
    @ApiModelProperty(value = "审核人姓名")
    @TableField("audit_name")
    private String auditName;
    @ApiModelProperty(value = "盘点单号，来源单号")
    @TableField("counting_code")
    private String countingCode;

    @ApiModelProperty(value = "状态,0未审核 1 已审核,2驳回")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "差异单明细")
    @TableField(exist = false)
    private List<DifferenceItem> differenceItemList;

}
